//
//  GWMeTableVIewCell.m
//  百思不得姐
//
//  Created by qianfeng on 16/3/8.
//  Copyright © 2016年 高炜. All rights reserved.
//

#import "GWMeTableVIewCell.h"

@implementation GWMeTableVIewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self =[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIImageView *imageView =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"mainCellBackground"] ];
        self.backgroundView =imageView;
        self.accessoryType =UITableViewCellAccessoryDisclosureIndicator;
        self.textLabel.font =[UIFont systemFontOfSize:16];
        self.textLabel.textColor =[UIColor darkGrayColor];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    if (self.imageView.image==nil) return;
    self.imageView.width =30;
    self.imageView.height =self.imageView.width;
    self.imageView.centerY =self.contentView.height*0.5;
    self.textLabel.x =CGRectGetMaxX(self.imageView.frame)+10;
}
@end
